<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/all.css">
    <title>博客-首页</title>
</head>

<body ng-app="myApp" ng-controller="Ctrol">
    <nav class="left">
        <ul>
            <li>
                <a href="" class="aimg">
                    <img src="" alt=""><br>
                    <span style="color:gray"></span>
                </a>
            </li>
            <li>
                <a href=""><img src="" alt=""></a>
            </li>
            <li class="active"><a href="#">首页</a></li>
            <li class="active"><a href="data.html" class="hide">存档</a></li>
            <li class="active"><a href="ele.html" class="hide">标签</a></li>
            <li class="active">
                <a href="" class="fa"></a>
            </li>
            <li class="active">
                <a href="" class="fa"></a>
            </li>
            <li class="active">
                <a href="" class="fa"></a>
            </li>
            <li><input type="text" placeholder="SEARCH" id="search"></li>
        </ul>
    </nav>
    <section>
        <h1>主页</h1>
        <strong id="jilu"></strong>
        <div ng-repeat="x in questions" class="index">
            <p ng-click="show(x.id)">{{x.title}}</p>
            <p ng-click="show(x.id)"><img class="imgs" ng-src="/uploads/{{x.petname}}.jpg" err-src="/images/user.png">&#X3000;作者：<span>{{x.petname}}</span>&#X3000;|&#X3000;日期：<span>{{x.time | date:"yyyy-MM-dd"}}</span>&#X3000;|&#X3000;标签：<span class="color">{{x.ele1}}</span>&#X3000;
                <span class="color">{{x.ele2}}</span>&#X3000;<span class="color">{{x.ele3}}</span> </p>
            <p ng-click="show(x.id)">阅读：<span>{{x.count1}}</span>&#X3000;|&#X3000;评论：<span>{{x.count2}}</span></p>
        </div>
    </section>
    <script src="libs/angular.js"></script>
    <script src="libs/jquery.js"></script>
    <script src="libs/jquery.cookie.js"></script>
    <script src="scripts/index.js"></script>
</body>

</html>